Pronamic\WordPress\Pay\Payments\Payment B

Total Complexity 84
Dependencies 15
Dependents 31
Total lines 874
Lines of code 349
Logical lines of code 177
Comment lines 367
Methods 37
Properties 15

Methods 37

Method Rating Maintainability Complexity Lines of code
from_json()
B
39 21 61
get_json()
B
39 15 65
get_provider_link()
S
57 4 17
add_note()
S
52 3 29
get_source_text()
S
58 2 15
get_return_url()
S
60 2 14
__construct()
S
63 2 11
add_period()
S
69 2 7
add_subscription()
S
70 2 6
get_subscription()
S
69 2 7
get_source_link()
S
64 2 10
get_source_description()
S
64 2 10
get_refunded_amount()
S
82 1 3
get_edit_payment_url()
S
65 1 10
set_transaction_id()
S
81 1 3
get_periods()
S
82 1 3
get_email()
S
82 1 3
format_string()
S
67 1 8
get_subscriptions()
S
82 1 3
get_transaction_id()
S
82 1 3
get_total_amount()
S
82 1 3
get_return_redirect_url()
S
70 1 6
set_refunded_amount()
S
81 1 3
set_expiry_date()
S
81 1 3
get_expiry_date()
S
82 1 3
set_action_url()
S
81 1 3
save()
S
81 1 3
set_total_amount()
S
81 1 3
get_pay_redirect_url()
S
65 1 10
set_failure_reason()
S
81 1 3
get_failure_reason()
S
82 1 3
set_status()
S
81 1 3
get_status_label()
S
80 1 3
get_status()
S
82 1 3
set_charged_back_amount()
S
81 1 3
get_charged_back_amount()
S
82 1 3
get_action_url()
S
82 1 3